
#include "msgqueue.h"


struct poller_result
{
	int state;
	int error;
};

struct __poller_node
{
	int state;
	int error;
	struct __poller_node *res;
};

int main(int argc, char **argv)
{
	int linkoff = sizeof(struct poller_result);
	msgqueue_t *queue = msgqueue_create(4, linkoff);

	struct __poller_node nodes[2];

	msgqueue_put(&nodes[0], queue);
	msgqueue_put(&nodes[1], queue);

	msgqueue_destroy(queue);

	return 0;
}